import request from '../utils/request'

const WEB_APP = 'http://localhost:8080';

export function login(data) {
  return request(`${WEB_APP}/login`, {
    headers: {
      'content-type': 'application/json',
    },
    method: 'POST',
    body: JSON.stringify(data),
  });
}

export function logout() {
  return request(`${WEB_APP}/logout`);
}
